package com.chongba.schedule.async;


import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class AsyncTask {

    @Async("mythreadpool")
    public void myAsync(){
        System.out.println("spring boot async task test " +
                Thread.currentThread().getName());
    }
}
